/*!
 * BottleCMS-UI v1.2.7 (http://ui.bottlecms.com)
 * Copyright 2014-2018 BottleCMS, Inc.
 * Licensed MIT 
 */

/*会话窗口样式*/

.icon-return, .icon-mbubble, .icon-emoticon, .icon-more, .icon-voice, .icon-keyboard, .icon-edit, .icon-image {
    height: 30px;
    width: 30px;
    display: inline-block;
    background: url("../img/dialogue/base.png?2") no-repeat 0px 0px;
    background-size: 60px auto;
}

.on .icon-return, .on .icon-mbubble, .on .icon-emoticon, .on .icon-more, .on .icon-voice, .on .icon-keyboard, .on .icon-edit, .on .icon-image, .icon-return.on, .icon-mbubble.on, .icon-emoticon.on, .icon-more.on, .icon-edit.on, .icon-image.on {
    background-position-x: -30px;
}

.icon-return {
    background-position-y: 0px;
}

.icon-mbubble {
    background-position-y: -30px;
}

.icon-emoticon {
    background-position-y: -60px;
}

.icon-more {
    background-position-y: -90px;
}

.icon-edit {
    background-position-y: -120px;
}

.icon-image {
    background-position-y: -150px;
}

.icon-keyboard {
    background-position-y: -180px;
}

.icon-voice {
    background-position-y: -210px;
}

.bcui-dialogue p, .bcui-dialogue ul, .bcui-dialogue li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.bcui-dialogue {
}

/*底部工具栏*/

.bcui-dialogue .dialogue-send {
    position: absolute;
    z-index: 100;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
}

.bcui-dialogue .dialogue-speak {
    height: 2.5rem;
    overflow: hidden;
    position: relative;
}

.bcui-dialogue .dialogue-speak .talkbox {
    padding: .35rem 5rem 0 .5rem;
    overflow: hidden;
}

.bcui-dialogue .dialogue-speak .voicebox ~ .talkbox {
    padding-left: 2.5rem;
}

.bcui-dialogue .dialogue-speak .talkbox textarea {
    padding-left: .25rem;
    padding-top: .35rem;
    resize: none;
    display: inherit;
    width: 100%;
    height: 1.8rem;
    line-height: 1rem;
    background-color: #F0F0F0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    border: none;
    border-radius: .15rem;
    font-size: .7rem
}

.bcui-dialogue .dialogue-speak .talkbox .provide {
    display: none;
}

.bcui-dialogue .dialogue-speak .voicebox {
    padding-top: .35rem;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.bcui-dialogue .dialogue-speak .voicebox .d-btn {
    cursor: pointer;
    float: left;
    width: 1.8rem;
    height: 1.8rem;
    background: none;
    padding: 0;
    margin: 0;
    margin-left: .25rem;
}

.bcui-dialogue .dialogue-speak .voicebox .d-btn i {
    margin: .15rem
}

.bcui-dialogue .dialogue-speak .voicebox .keyboard {
    display: none;
}

.bcui-dialogue .dialogue-speak .voicebox.on .keyboard {
    display: block;
}

.bcui-dialogue .dialogue-speak .voicebox.on .voice {
    display: none;
}

.voicetalkbox {
    display: none;
    padding: .35rem 5rem 0 2.5rem;
    overflow: hidden;
}

.voicetalkbox .voicebtn {
    width: 100%;
    height: 1.8rem;
    line-height: 1.8rem;
    text-align: center;
    background-color: #F0F0F0;
    border-radius: .15rem;
    font-size: .7rem
}


.voicetalkbox .voicetalkpop {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 6rem;
    height: 6rem;
    margin-top: -3rem;
    margin-left: -3rem;
    background: rgba(0, 0, 0, .6);
    border-radius: .5rem;
    font-size: .7rem;
    text-align: center;
    color: #FFF;
    display: none;
}

.voicetalkbox .voicetalkpop.on {
    display: block;
}


@keyframes voiceico {
    20% {
        background-image: url(../img/dialogue/voice/voice1.svg?2);
    }
    40% {
        background-image: url(../img/dialogue/voice/voice2.svg?2);
    }
    60% {
        background-image: url(../img/dialogue/voice/voice3.svg?2);
    }
    80% {
        background-image: url(../img/dialogue/voice/voice4.svg?2);
    }
    100% {
        background-image: url(../img/dialogue/voice/voice5.svg?2);
    }
}

.voicetalkbox .voicetalkpop .ico {
    width: 3rem;
    height: 3rem;
    margin: .9rem auto;
    margin-bottom: .5rem;
    position: relative;
    background-image: url(../img/dialogue/voice/voice.svg?2);
    background-size: cover;
    display: block;
    animation: voiceico 1s linear infinite;
}


.bcui-dialogue .dialogue-speak .btnbox {
    padding-top: .35rem;
    position: absolute;
    top: 0;
    right: 0;
    width: 4.5rem;
    overflow: hidden;
}

.bcui-dialogue .dialogue-speak .btnbox .d-btn {
    cursor: pointer;
    float: left;
    width: 1.8rem;
    height: 1.8rem;
    background: none;
    padding: 0;
    margin: 0;
    margin-right: .25rem;
}

.bcui-dialogue .dialogue-speak .btnbox .d-btn i {
    margin: .15rem
}

.bcui-dialogue .dialogue-speak .btnbox .sendbtn span {
    background-color: #f6296d;
    color: #FFF;
    font-size: .6rem;
    border-radius: .15rem;
    height: 1.5rem;
    line-height: 1.5rem;
    width: 2rem;
    text-align: center;
    display: inline-block;
    margin-top: .15rem;
}

.bcui-dialogue .dialogue-speak .btnbox .js_imagebtn, .bcui-dialogue .dialogue-speak .btnbox .js_sendbtn, .bcui-dialogue .dialogue-tool, .bcui-dialogue .dialogue-emot {
    display: none;
}

.bcui-dialogue .dialogue-tool {
    height: 7.5rem;
    border-top: 1px solid #F0F0F0;
    padding: 1rem;
}

.bcui-dialogue .dialogue-tool .item {
    float: left;
    margin-right: 1rem;
}

.bcui-dialogue .dialogue-tool .item .icon {
    height: 3rem;
    width: 3rem;
    overflow: hidden;
    position: relative;
    background-color: #F8F8F8;
    border: 1px solid #F0F0F0;
    border-radius: .3rem;
}

.bcui-dialogue .dialogue-tool .item .icon i {
    margin: .7rem;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 1.6rem;
    display: block;
    color: #999;
}

.bcui-dialogue .dialogue-tool .item .tit {
    line-height: 1rem;
    font-size: .6rem;
    color: #666;
    text-align: center;
}

.bcui-dialogue .dialogue-emot {
    min-height: 7.5rem;
    border-top: 1px solid #F0F0F0;
    padding: .5rem;
    overflow: hidden;
}

.bcui-dialogue .dialogue-emot li {
    cursor: pointer;
    float: left;
    width: 2rem;
    height: 2rem;
    text-align: center;
    line-height: 2rem;
}

.bcui-dialogue .dialogue-emot li img {
    width: 1rem;
    vertical-align: middle;
    margin-top: -.15rem;
}


/*会话列表*/

.bcui-dialogue .dialogue-main {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 2.5rem;
    overflow: hidden;
    overflow-y: auto;
}

.bcui-dialogue .dialogue-main .chatList {
    margin: .5rem 0 3.5rem;
    overflow: hidden;
}

.bcui-dialogue .dialogue-main .chatList .time {
    color: #999;
    font-size: .6em;
    text-align: center;
    font-family: Arial;
    text-shadow: 1px 0 0 #FFF;
    width: 100%;
    clear: both;
    overflow: hidden;
}

.bcui-dialogue .dialogue-main .chatList .item {
    position: relative;
    display: block;
    margin-top: .6rem;
    overflow: hidden;
    padding-bottom: .1rem;
}

.bcui-dialogue .dialogue-main .chatList .uinfo {
    float: left;
    display: block;
    width: 2.5rem;
    position: relative;
    text-align: center;
    line-height: 2rem;
    font-size: .6rem;
}

.bcui-dialogue .dialogue-main .chatList .item .uinfo img {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 100%;
    background: url('../img/dialogue/userpic.jpg') no-repeat 0 0;
    background-size: cover;
}

.bcui-dialogue .dialogue-main .chatList .item .dialogbox {
    border-radius: .25rem;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
    background: #FFF;
    font-size: .75rem;
    line-height: 1.5em;
    color: #555;
    max-width: 51%;
    min-height: 20px;
    min-width: 50px;
    position: relative;
    float: left;
}

.bcui-dialogue .dialogue-main .chatList .me .dialogbox {
    background: #F4DDE3;
    border: 1px solid #F4DDE3;
}

.bcui-dialogue .dialogue-main .chatList .item .state {
    line-height: 2rem;
    text-align: center;
    width: 2.5rem;
    font-size: .6rem;
    float: left;
}


.bcui-dialogue .dialogue-main .chatList .me .uinfo,
.bcui-dialogue .dialogue-main .chatList .me .dialogbox,
.bcui-dialogue .dialogue-main .chatList .me .state {
    float: right;
}


.bcui-dialogue .dialogue-main .chatList .dialogbox:after {
    content: " ";
    display: block;
    width: .4rem;
    height: .4rem;
    background: #fff;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
    position: absolute;
    top: .75rem;
    right: -.25rem;
}

.bcui-dialogue .dialogue-main .chatList .me .dialogbox:after {
    background: #F4DDE3;
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.06);
}

.bcui-dialogue .dialogue-main .chatList .you .dialogbox:after {
    position: absolute;
    top: .75rem;
    left: -.2rem;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    transform: rotate(135deg);
}

.bcui-dialogue .dialogue-main .chatList .item.msg {
    display: block;
    width: 90%;
    border-radius: .2rem;
    margin: .6rem auto 0;
    height: auto;
    line-height: 1.1rem;
    text-align: center;
    background: #dbdbdb;
    color: #fff;
    font-size: .7rem
}

.bcui-dialogue .dialogue-main .chatList .item .remind {
    width: 70%;
    margin: 0 auto;
    background: #DBDBDB;
    color: #fff;
    padding: .3rem .5rem;
    border-radius: .25rem;
    line-height: 1rem
}


.bcui-dialogue .dialogue-main .chatList .item .talk {
    padding: .5rem;
    overflow: hidden;
    word-break: break-all;
    word-wrap: break-word;
}

.bcui-dialogue .dialogue-main .chatList .item .talk img {
    max-width: 100%;
    max-height: 20rem;
}

.bcui-dialogue .dialogue-main .chatList .item .talk .emot {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0 .1rem;
}

.bcui-dialogue .dialogue-main .chatList .item .talk a {
    color: #2786E4;
}


/*图片*/

.bcui-dialogue .dialogue-main .chatList .item.word_type2 .talk {
    padding: 0;
}

.bcui-dialogue .dialogue-main .chatList .item.word_type2 .dialogbox {
    background: none;
    border: none;
    box-shadow: none;
}

.bcui-dialogue .dialogue-main .chatList .item.word_type2 .dialogbox:after {
    display: none;
}

/*声音*/
.bcui-dialogue .dialogue-main .me .voice,
.bcui-dialogue .dialogue-main .me .voice_gif {
    display: inline-block;
    width: .7rem;
    height: 1rem;
    background: url(../img/dialogue/talk_voice.png) no-repeat;
    background-size: cover;
    float: right;
}

.bcui-dialogue .dialogue-main .me .voice_gif {
    background: url(../img/dialogue/talk_voice.gif) no-repeat
}

.bcui-dialogue .dialogue-main .audio {
    position: absolute;
    opacity: 0;
    width: 2rem;
    top: .25rem;
    display: none;
}

.bcui-dialogue .dialogue-main .chatList .you .voice,
.bcui-dialogue .dialogue-main .chatList .you .voice_gif {
    display: inline-block;
    width: .7rem;
    height: 1rem;
    background: url(../img/dialogue/talk_voice_2.png) no-repeat;
    background-size: cover;
    float: left;
}

.bcui-dialogue .dialogue-main .chatList .you .voice_gif {
    background: url(../img/dialogue/talk_voice_2.gif) no-repeat
}

.bcui-dialogue .dialogue-main .chatList .me .audio {
    right: 1px;
}

.bcui-dialogue .dialogue-main .chatList .you .audio {
    left: 1px;
}


/*视频*/

.bcui-dialogue .dialogue-main .chatList .item.word_type4 .talk {
    padding: 0;
}

.bcui-dialogue .dialogue-main .chatList .item.word_type4 .dialogbox {
    background: none;
    border: none;
    box-shadow: none;
}

.bcui-dialogue .dialogue-main .chatList .item.word_type4 .dialogbox:after {
    display: none;
}

.bcui-dialogue .dialogue-main .chatList .item.word_type4 .video {
    max-width: 100%;
}


/*礼物*/

.bcui-dialogue .dialogue-main .chatList .item.word_type12 .talk {
    padding: 0;
}

.bcui-dialogue .dialogue-main .chatList .item.word_type12 .dialogbox {
    background: none;
    border: none;
    box-shadow: none;
    text-align: center;
    padding: .3rem;
    width: 6.5rem;
}

.bcui-dialogue .dialogue-main .chatList .item.word_type12 .dialogbox:after {
    display: none;
}

.bcui-dialogue .dialogue-main .chatList .item.word_type12 .gift_img {
    width: 5rem;
    height: 5rem;
    display: block;
    margin: 0 auto;
    border-radius: .5rem;
}

.bcui-dialogue .dialogue-main .chatList .item.word_type12 .gift_title {
    background: #AAA;
    border-radius: .2rem;
    height: 1.5rem;
    line-height: 1.5rem;
    padding: .1rem .3rem;
    color: #FFF;
    font-size: .6rem;
    margin-top: .3rem;
}


.bcui-dialogue .dialogue-main .ico-history {
    height: .7rem;
    width: .7rem;
    display: inline-block;
    margin-right: .1rem;
    vertical-align: middle;
    margin-top: -.2rem;
    background: url("../img/dialogue/history.png") no-repeat;
    background-size: .7rem .7rem;
}

.bcui-dialogue .dialogue-main .MessageHistory {
    text-align: center;
    padding: .5rem;
    font-size: .65rem;
    color: #2786E4
}